package com.xiguaji.tiktok.v1.user.dto;

import com.xiguaji.tiktok.v1.user.model.User;
import lombok.Data;
import org.mapstruct.Mapper;

@Data
public class UserReturnDto {
    private Long id;
    private String firstName;
    private Boolean activation;
    private String lastName;
    private Long parentId;
    private String email;
    private String avatar;
    private int source;
    private boolean havePassword;
    private Long createTime;
    private Long roleId;
    private String edition;
    private Long historyRoleId;
    private String historyEdition;
    private Long expiredDate = 0l;
    private long lastLoginTime;
    private int creditsBalance;
    private int dailyReports;

    @Mapper(componentModel = "spring")
    public interface UserMapper {
        UserReturnDto mapper(User dto);

    }
}
